package video

import "server/lib/Imartini"
import "code.google.com/p/go.net/websocket"

// import "log"
// import "net/http"

var base = "test/video"
var route = [][]interface{}{
	{"", "GET", "/shtml", svideohtml},
	{"", "GET", "/html", videohtml},
	{"", "GET", "/list", list},
	{"", "GET", "/timg", timg},
	{"", "*", "", websocket.Handler(videoServer).ServeHTTP},
	{"", "*", "/rel", websocket.Handler(rvideoServer).ServeHTTP},
}

func init() {
	Imartini.M.AddIroute(base, route)
	// Imartini.M.AddRoute("GET", "/js/", http.FileServer(http.Dir("/var/www/js/")))
	// log.Println(Imartini.M.Iroute)
}
